﻿
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sproc_AccountGetFolders]') AND type in (N'P', N'PC'))
    DROP PROCEDURE [dbo].[sproc_AccountGetFolders];
GO
-------------------------------------------------------------------------------
-- sproc_AccountGetFolders
-------------------------------------------------------------------------------
CREATE PROCEDURE [dbo].[sproc_AccountGetFolders]
(
    @userID  int 
)
AS
BEGIN
SET NOCOUNT ON;

SELECT FolderID, FolderName FROM dbo.TabUsrMailFolder WHERE userid = @userID;

END
GO